package com.guofen.service.shlj;

import com.guofen.pojo.ShljStorageBoxClean;
import com.guofen.pojo.ShljTroubleshooting;

import java.util.List;
import java.util.Map;

public interface TroubleshootingService{
    //增
    boolean add(String personInCharge,
                String systemName,
                String equipmentName,
                String stage,
                String recordingPerson,
                String timeOfFailure,
                String faultDescription,
                String faultReasion,
                String faultRepairMethod,
                String repairStartTime,
                String repairEndTime,
                String repairPerson,
                String methodProposer);

    ShljTroubleshooting getlast();

    List<ShljTroubleshooting> getList();

    boolean addFrontPart(String personInCharge,
                         String systemName,
                         String equipmentName,
                         String stage,
                         String recordingPerson,
                         String timeOfFailure,
                         String faultDescription);

    boolean addAfterPart(Integer id,
                         String faultReasion,
                         String faultRepairMethod,
                         String repairStartTime,
                         String repairEndTime,
                         String repairPerson,
                         String methodProposer);

    boolean deleteById(Integer id);

    public Map<String, Object> get(int pageSize, int currentPage);

    public Map<String, Object> getByTime(int pageSize, int currentPage, long startTime, long endTime);

    public int delete(int id);

    public int update(ShljTroubleshooting record);
}